#!/bin/bash

pid=$(ps -ef | grep datalife-0.0.1-SNAPSHOT.jar | grep -v grep | awk -F " " '{print $2}')

if [ -n "$pid" ]
then
  kill $pid
fi

echo "------------------------------------------------------------ stop success ------------------------------------------------------------"
